package com.example.plugin.controller;

import com.example.plugin.dto.PluginDto;
import com.example.plugin.service.PluginService;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

/**
 * @author airhead
 */
@Controller
@Mapping("/plugin")
public class PluginController {
    @Inject
    private PluginService service;

    @Get
    @Mapping("hello")
    public String hello() {
        return service.hello();
    }

    @Get
    @Mapping("cache")
    public PluginDto cache() {
        return service.cache();
    }
}
